<include file="__THEME__/header" />
<link href="../Public/css/photo.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__PUBLIC__/js/ui.core.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/ui.sortable.js"></script>
    <script type="text/javascript">
    var aid = {$aid};
$(document).ready(
    function () {
        $("#sortable").sortable();
        $("#sortable").disableSelection();
    }
);
function serialize()
{
    var serial = $('#sortable').sortable("toArray");
    var order = serial.join(',');
    $.post(APP+'/Manage/save_order/',{order:order,id:aid},function(result){
        if(result == 1){
            Alert('保存成功');
        }else{
            Alert('保存失败');
        }
    });
};
</script>
<!-- 头部 end -->
<div class="content"><!-- 内容 begin  -->
	<include file="__THEME__/apps" />
	<div class="main"> <!-- 右侧内容 begin  -->

  <div class=page_title> <!-- page_title begin -->
  	<div class="left" style="width:70px;">
    	<span class="headpic50"><img src="{$album.userId|getUserFace}" /></span></div>
    <div class="left" style="width:650px;">
    	<h2>我的专辑“我的{$APPINFO['APP_CNNAME']}”</h2>
        <p><a href="#">我的首页</a> ┊ <a href="#">我的{$APPINFO['APP_CNNAME']}</a></p>
    </div>
    <div class="left alR lh30" style="width:100px;">
        <a href="javascript:history.back(-1)">返回上一页</a></div>
  <div class="c"></div>
</div><!-- page_title end -->
  <!-- 切换标签 end  -->
  <div class="MenuSub"> 共{$album.photoCount}张 ┊ <a href="__URL__/album_edit/id/{$album.id}">编辑该专辑</a> ┊ <a href="__APP__/Index/albums/uid/{$album.userId}">返回全部专辑列表</a> </div>
<div class="photoBox">
	  <div class="order">
		提示：用鼠标拖动{$APPINFO['APP_CNNAME']}，然后点击“保存修改”按钮即可。<br />
    	<input type="button" onClick="serialize();return false;" class="btn_b" value="保存修改" />
      </div>
  		<ul id="sortable" class="orderlist">
		    <volist name="photos" id="li">
		        <li id="{$li.id}">
		        <a href="__APP__/Index/photo/id/{$li.id}/aid/{$album.id}/uid/{$li.userId}" class="preview" rel="__ROOT__/thumb.php?w=400&h=400&t=f&url={$li.savepath|get_photo_url}" title="{$li.name}"><img src="__ROOT__/thumb.php?w=120&h=100&t=f&url={$li.savepath|get_photo_url}" /><br />{$li.name|getShort='10'}</a></li>
		    </volist>
      </ul>
<!-- photoBox end  -->
  </div>
  <div class="lh30"><span class="right cGray2">{$$album.mTime|friendlyDate}创建</span></div>
  </div><!-- 右侧内容 end  -->


<div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
